package cn.ctodb.im.logic.repository;

import cn.ctodb.im.logic.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * All rights Reserved, Designed By www.ctodb.cn
 *
 * @version V1.0
 * @author: lichaohn@163.com
 * @date: 2018-11-14 14:08
 * @Copyright: 2018 www.ctodb.cn All rights reserved.
 */
public interface UserRepository extends JpaRepository<User, String> {

    Optional<User> findByCode(String code);

}
